﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="horarios_medicos.aspx.cs" Inherits="pages_empleados" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <asp:Panel ID="Panel1" runat="server" GroupingText="Horarios Medicos">
        <div class="controles">

            <div class="filaCorta">
                <asp:Label Text="Fecha" ID="lblFecha" runat="server" />
                <asp:TextBox runat="server" name="date" ID="txtFechaHorarios" Style="width: 100px;" ClientIDMode="Static" />
            </div>
            <div class="fila">
                <asp:Label Text="Medico" ID="Label1" runat="server" />
                <asp:DropDownList runat="server" ID="ddlMedicos">
                </asp:DropDownList>
            </div>
            <div class="filaCorta">
                <asp:Label Text="Desde" ID="lblDesde" runat="server" />
                <asp:DropDownList runat="server" ID="ddlHoraDesde" Style="width: 50px;">
                    <asp:ListItem Text="08" />
                    <asp:ListItem Text="09" />
                    <asp:ListItem Text="10" />
                    <asp:ListItem Text="11" />
                    <asp:ListItem Text="12" />
                    <asp:ListItem Text="13" />
                    <asp:ListItem Text="14" />
                    <asp:ListItem Text="15" />
                    <asp:ListItem Text="16" />
                    <asp:ListItem Text="17" />
                    <asp:ListItem Text="18" />
                    <asp:ListItem Text="19" />
                    <asp:ListItem Text="20" />
                </asp:DropDownList>
                <asp:DropDownList runat="server" ID="ddlMinutosDesde" Style="width: 50px;">
                    <asp:ListItem Text="00" />
                    <asp:ListItem Text="30" />
                </asp:DropDownList>
            </div>
            <div class="filaCorta">
                <asp:Label Text="Hasta" ID="lblHasta" runat="server" />
                <asp:DropDownList runat="server" ID="ddlHoraHasta" Style="width: 50px;">
                    <asp:ListItem Text="08" />
                    <asp:ListItem Text="09" />
                    <asp:ListItem Text="10" />
                    <asp:ListItem Text="11" />
                    <asp:ListItem Text="12" />
                    <asp:ListItem Text="13" />
                    <asp:ListItem Text="14" />
                    <asp:ListItem Text="15" />
                    <asp:ListItem Text="16" />
                    <asp:ListItem Text="17" />
                    <asp:ListItem Text="18" />
                    <asp:ListItem Text="19" />
                    <asp:ListItem Text="20" />
                </asp:DropDownList>
                <asp:DropDownList runat="server" ID="ddlMinutosHasta" Style="width: 50px;">
                    <asp:ListItem Text="00" />
                    <asp:ListItem Text="30" />
                </asp:DropDownList>
            </div>
            <div>
                <asp:Button Text="Agregar" ID="btnAgregar" runat="server" OnClick="btnAgregar_Click" /><asp:Button Text="Borrar" ID="Button1" runat="server" /><asp:Button Text="Modificar" ID="Button2" runat="server" /></div>
            <div style="width: 100%; float: left; display: block; text-align: center; color: red;">
                <asp:Label Text="-" ID="lblError" runat="server" />
            </div>
        </div>

    </asp:Panel>

    <asp:Panel ID="Panel2" runat="server" GroupingText="Grilla">

        <asp:GridView Width="100%" runat="server" ID="gvHorariosMedicos" AllowPaging="true" AllowSorting="true" FooterStyle-BackColor="#87A431" PagerStyle-BackColor="#87A431" ForeColor="White" 
           OnPageIndexChanging="gvHorariosMedicos_PageIndexChanging"   AutoGenerateColumns="False" PageSize="10">

            <Columns>
                <asp:ButtonField Text="Select" />
                <asp:BoundField DataField="dia" HeaderText="Dia" />
                <asp:BoundField DataField="LEGAJO" HeaderText="Legajo" />
                <asp:BoundField DataField="hora_desde" HeaderText="Desde" />
                <asp:BoundField DataField="hora_hasta" HeaderText="Hasta" />
            </Columns>

            <FooterStyle CssClass="FooterStyle" />
            <HeaderStyle CssClass="HeaderStyle" />
            <PagerStyle />
            <RowStyle CssClass="RowStyle" />
            <SelectedRowStyle CssClass="SelectedRowStyle" />
            <SortedAscendingCellStyle />
            <SortedAscendingHeaderStyle />
            <SortedDescendingCellStyle />
            <SortedDescendingHeaderStyle />
            <AlternatingRowStyle CssClass="AlternatingRowStyle" />
        </asp:GridView>
    </asp:Panel>

</asp:Content>
